package com.syc.sss.service.impl;

import com.syc.sss.dao.ResumeDao;
import com.syc.sss.entity.Resume;
import com.syc.sss.service.ResumeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class ResumeServiceImpl implements ResumeService {

    @Autowired
    private ResumeDao resumeDao;

    public List<Resume> findAll() {
        return resumeDao.findAll();
    }

    public void save(Resume resume){
        resumeDao.save(resume);
    }

    public void delete(String id){
        resumeDao.deleteById(Long.valueOf(id));
    }
}
